<#include "../../inc/layout.html">
<@layout title="商机" js="crm/business/index.js">
<style>
.comboDiv{position:absolute;}
</style>
<div class="wrapper" ms-controller="view">
  	<div class="mod-search cf">
    	<div class="fl">
	    	<ul class="ul-inline">
		        <li>
		          	<input type="text"  ms-duplex="query.keyword" class="ui-input con" value="" placeholder="请输入客户名称或商机主题">
		        </li>
		        <li>
		        	<input type="text" class="ui-input" readonly="readonly" value="负责人" id="headCombo">
		        </li>
		       <!--  <li>
		        	<select ms-duplex="query.origin" class="ui-input">
		        	<option value="">来源</option>
		        	<option ms-repeat="parameList[2]" ms-value="{{el.id}}">{{el.name}}</option>
		        	</select>
		        </li>
		        <li>
		        	<select ms-duplex="query.type" class="ui-input">
		        	<option value="">类别</option>
		        	<option ms-repeat="parameList[12]" ms-value="{{el.id}}">{{el.name}}</option>
		        	</select>
		        </li> -->
		        <li>
		      		<select ms-duplex="query.status" class="ui-input">
		        		<option value="">状态</option>
		        		<option ms-repeat="parameList[13]" ms-value="{{el.id}}">{{el.name}}</option>
		        	</select>
		        </li>
		        <li>
		          <label>预计日期:</label>
		          <input type="text" ms-duplex="query.start_date" class="ui-input ui-datepicker-input" placeholder="起始日期">
		          <span>-</span>
		          <input type="text" ms-duplex="query.end_date" class="ui-input ui-datepicker-input" placeholder="截止日期">
		        </li>
		        <li>
		        	<a class="ui-btn" id="search" ms-click="reloadData" title="查询">
		        		<i class="fa fa-search"></i>
		        	</a>
		        	<a class="ui-btn" id="refresh" ms-click="reset" title="重置查询条件">
		        		<i class="fa fa-refresh"></i>
		        	</a>
		        </li>
		        <li>
			  		<div class="dropdown">
					  	<a class="ui-btn dropdown-toggle" data-toggle="dropdown">{{fastQryText}}
					  		<span class="caret"></span>
					  	</a>
					  	<ul class="dropdown-menu">
					  		<li ms-repeat="fastQry" ms-class="divider:el.sl">
					  			<a ms-click="qry($index)">{{el.text}}</a>
					  		</li>
					  	</ul>
					</div>
				</li>
			</ul>
    	</div>
   	 	
   	 	<div class="fr">
    		<a class="ui-btn ui-btn-sp mrb" id="add" title="新增">
    			<i class="fa fa-plus"></i>
    		</a>
    		<a class="ui-btn mrb"id="btn-batchDel"title="删除">
    			<i class="fa red fa-trash-o"></i>
    		</a>
    	</div>
  	</div>
  	
  	<div class="grid-wrap">
    	<table id="grid"></table>
    	<div id="page"></div>
  	</div>
</div>
</@layout>
